-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
Fix get top billionaires BROKEN file #8970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix get top billionaires BROKEN file #8970
Conversation
…h/python into fix-get-top-billionaires
@cclauss This pr also fixes a broken file. The problem was that the unix timestamps were negative (if the billionaire is older than 53) which python causes python datetime to error (overflow error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we change the doctests so that we don't have to update the ages every year? (see previous comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried it locally, looks like it works 👍
* updating DIRECTORY.md * fix(get-top-billionaires): Handle timestamp before epoch * updating DIRECTORY.md * revert(pyproject): Re-implement ignore lru_cache * fix(age): Update age to current year * fix(doctest): Make years since dynamic --------- Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Describe your change:
Fixes a
get_top_billionaires
and unmarks it as disabledChecklist: